algebraic long division